Skip to content

Add prompt stashing across threads - #93

Merged
badcuban merged 2 commits into
mainfrom
worktree-agent-a16e706c0738476f7
Jul 29, 2026
Merged

Add prompt stashing across threads#93
badcuban merged 2 commits into
mainfrom
worktree-agent-a16e706c0738476f7

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

What Changed

  • Added a global prompt stash for saving and restoring composer prompts across threads and providers.
  • Preserved attachments and composer context chips when stashing and restoring.
  • Added stash controls, deletion, capacity handling, attachment compression, and ⌘S/Ctrl+S support.
  • Added unit and browser coverage for stash behavior and the stash control.

Why

Prompts and their accumulated context can be lost when switching threads or environments. The stash provides a reliable way to temporarily save unfinished work and restore it later without carrying over the current model or provider selection.

UI Changes

The composer now includes a bookmark control showing the number of stashed prompts. Its menu supports saving the current prompt, restoring entries, deleting entries, and reporting attachment limits or storage failures.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

- Persist stashed prompts with attachments and composer context
- Restore stashes through the composer control and mod+s shortcut
- Add image compression, stash persistence tests, and keybinding updates
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
threadlines Skipped Skipped Jul 29, 2026 7:12am

Request Review

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Jul 29, 2026
@badcuban
badcuban merged commit d4f7a39 into main Jul 29, 2026
17 of 18 checks passed
@badcuban
badcuban deleted the worktree-agent-a16e706c0738476f7 branch July 29, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant